home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000155_icon-group-sender _Wed Jul 14 07:53:31 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id HAA19313
for icon-group-addresses; Wed, 14 Jul 1999 07:53:23 -0700 (MST)
Message-Id: <199907141453.HAA19313@baskerville.CS.Arizona.EDU>
Date: Wed, 14 Jul 1999 09:32:53 +0100 (BST)
From: Hugh Sasse <hgs@dmu.ac.uk>
To: Gregg Townsend <gmt@baskerville.CS.Arizona.EDU>
cc: icon-group@optima.CS.Arizona.EDU
Subject: Re: checking for directory
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
On Tue, 13 Jul 1999, Gregg Townsend wrote:
> You can't tell by the file contents, but you can determine whether a
> filename s is a directory by checking to see whether open(s || "/.")
Yes, that would do the trick. Thank you.
> succeeds. This is encapsulated in the directory(s) procedure in the
> Icon program library ("link io"). There's no general stat()/lstat()
> function, though.
I think it is worth considering. It is not so unix specific:
DOS C compilers had it in the 1980's. I get the impression
that the Unicon people are keen to contribute their extensions
to the Icon core, but you would have to ask them of course :-)
If Icon is regarded as being complete now, then I suppose this
won't get included.
>
> ---------------------------------------------------------------------------
> Gregg Townsend Staff Scientist The University of Arizona
> gmt@cs.arizona.edu Computer Science Tucson, Arizona, USA
>
Thank you,
Hugh